import { ConfigProvider } from 'antd';
import { Navigate, Route, Routes, useRoutes } from 'react-router-dom'
import routerList from './router'
import zhCN from "antd/es/locale/zh_CN"


const App = () => {

  // 添加路由表
  const router = useRoutes(routerList);

  return (
    <ConfigProvider locale={zhCN}>
      <div className="App">
        {router}

      </div>
    </ConfigProvider>
  )
}



export default App